package test.test6_20;

public class Demo2 {
    //回文数
    public static void main(String[] args) {
        System.out.println(numberOfPalindromes(12421));
    }
    public static boolean numberOfPalindromes(int num) {
        int ge ,shi,bai,qian,wan;
        ge = num%10;
        shi = num%100/10;
        qian = num%10000/1000;
        wan = num/10000;

        if(ge == wan && shi== qian) {
            return true;
        }
        return false;
    }



}
